package ua.com.minus1.lookbattle.net;

import java.io.*;

public class Utils {
    public static void copyStream(InputStream is, OutputStream os) throws IOException {
        final int bufferSize=1024;
        byte[] bytes = new byte[bufferSize];
        int count = 0;
        while ((count = is.read(bytes, 0, bufferSize)) != -1) {
            os.write(bytes, 0, count);
        }
    }
}